Package AccessGrid :: Package hosting :: Module SOAPInterface :: Class SOAPInterface
[show private | hide private]
[frames | no frames]

Class SOAPInterface

Known Subclasses:
AGNetworkServiceI, AGNodeServiceI, AGServiceI, AGServiceManagerI, AuthorizationManagerI, SharedApplicationI, VenueClientI, VenueI, VenueServerI

This is the SOAP Interface object. It is meant to be derived from for all real SOAP Interfaces. This object provides the glue for how the interfaces and implementations get stuck together. It also provides a default authorization method that returns 0 (not authorized).


Method Summary
  __init__(self, impl)
This constructor for all SOAP Interfaces.
  _IsValid(self)
This method is here to support calls that just want to see if there is a valid server endpoint for communication from the client.
  IsValid(self)
This method is here to support calls that just want to see if there is a valid server endpoint for communication from the client.
  _authorize(self, *args, **kw)
This is meant to be a base class for all SOAP interfaces, so it's going to default to disallow calls.
  _GetCaller(self)
This method implements the guts of extracting the subject from the soap call.
  _GetContext(self)
This method implements the guts of extracting the subject and the action from the SOAP call.
  _GetMethodActions(self)
This method extracts all the methods and creates MethodActions for them, which means Authorization can be automatically loaded with actions for all the methods on an interface object.

Method Details

__init__(self, impl)
(Constructor)

This constructor for all SOAP Interfaces.

@param impl: an implementation object messages are routed to. @type impl: a python object.

_IsValid(self)

This method is here to support calls that just want to see if there is a valid server endpoint for communication from the client.

@returns: 1

IsValid(self)

This method is here to support calls that just want to see if there is a valid server endpoint for communication from the client.

@returns: 1

_authorize(self, *args, **kw)

This is meant to be a base class for all SOAP interfaces, so it's going to default to disallow calls. Derived interfaces can tailor this to suit their needs.

@return: 0, things are not authorized by default.

_GetCaller(self)

This method implements the guts of extracting the subject from the soap call.

@returns: a subject

_GetContext(self)

This method implements the guts of extracting the subject and the action from the SOAP call. It can be used by subclasses for retrieving this information for doing authorization, or other things.

@returns: a tuple of (subject, action)

_GetMethodActions(self)

This method extracts all the methods and creates MethodActions for them, which means Authorization can be automatically loaded with actions for all the methods on an interface object.

@return: a list of AccessGrid.Security.Action.MethodAction objects.


Generated by Epydoc 2.1 on Thu Apr 14 16:39:29 2005 http://epydoc.sf.net